.class Lcom/htc/android/footprints/activity/ListModeNewActivity$2;
.super Ljava/lang/Object;
.source "ListModeNewActivity.java"

# interfaces
.implements Lcom/htc/widget/TabSwitchHost$OnTabChangeSpecialListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/ListModeNewActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 214
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTabBeforeChange(Ljava/lang/String;)V
    .locals 2
    .parameter "nextTabId"

    .prologue
    .line 215
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mTitleView:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$700(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 216
    return-void
.end method

.method public onTabChanged(Ljava/lang/String;)V
    .locals 2
    .parameter "tabId"

    .prologue
    .line 207
    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v0

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 208
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 212
    :goto_0
    return-void

    .line 210
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$2;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$500(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    goto :goto_0
.end method
